package com.ruoyi.jihuo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.JhBaseEntity;
import lombok.Data;

import java.util.Date;

@Data
public class JhTmProductsOnSale extends JhBaseEntity {

    /**
     * 数据包ID
     */
    @Excel(name = "数据包ID")
    private Long jhDataPackageId;

    /**
     * 任务ID
     */
    @Excel(name = "任务ID")
    private Long jhTaskId;

    /**
     * 商品状态
     * 1 被过滤
     * 2 上架完成
     * 3 上架失败
     */
    @Excel(name = "商品状态")
    private String jhStatus;

    /**
     * 商品被过滤 或者上架失败说明
     */
    @Excel(name = "说明")
    private String jhExplain;

    /**
     * 天猫商品ID
     */
    @Excel(name = "天猫商品ID")
    private Long jhItemId;

    @Excel(name = "goodID")
    private Long jhGoodId;

    /**
     * 天猫店铺ID
     */
    @Excel(name = "天猫店铺ID")
    private Long jhTmAccountId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String jhName;

    /**
     * 商品分类
     */
    @Excel(name = "商品分类")
    private String jhClass;

    /**
     * 源商品地址
     */
    @Excel(name = "源商品地址")
    private String jhOriginalUrl;

    /**
     * 上架日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jhListingTime;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private String jhSalesVolume;
}
